package movie.entity;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Consumer {
	private int userId;
	private String userName;
	private String passWord;
	private String email;
	private String phoneNumber;
	private int memberId;
	private Date memberDate;
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassWord() {
		return passWord;
	}
	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPhoneNumber() {
		return phoneNumber;
	}
	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	public int getMemberId() {
		return memberId;
	}
	public void setMemberId(int memberId) {
		this.memberId = memberId;
	}
	public Date getMemberDate() {
		return memberDate;
	}
	public String printMemberDate() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
		String dateNowStr = sdf.format(memberDate);
		return dateNowStr;
	}
	public void setMemberDate(Date memberDate) {
		this.memberDate = memberDate;
	}
	@Override
	public String toString() {
		return "Consumer [userId=" + userId + ", userName=" + userName + ", passWord=" + passWord + ", email=" + email
				+ ", phoneNumber=" + phoneNumber + ", memberId=" + memberId + ", memberDate=" + memberDate + "]";
	}

	
	
}
